import 'package:flutter/material.dart';

class FirstPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Scaffold 手脚架组件实例1"),
        centerTitle: true,
      ),
      body: Center(
        child: Text("Scaffold first example"),
      ),
      bottomNavigationBar: BottomAppBar(
        child: Container(
          /// 这是下面底部任务栏的高度，与中间的内容不相干
          height: 50.0,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: null,

        /// 长按会显示的提示
        tooltip: "add",
        child: Icon(Icons.add),
      ),

      /// 设置底部悬浮按钮的位置
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
    );
  }
}
